package com.fitbet.admin.dao;

import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.fitbet.entity.user.UserWithdrawal;

/**
 * @author xiaoHU
 *
 */
@Dao("hibernate")
public interface UserWithdrawalDao {

    /**
     * @return
     *
     */
    @Query("SELECT COUNT(*) FROM UserWithdrawal where disabled = false AND paid = false")
    public int count();

    @Query("FROM UserWithdrawal where disabled = false AND paid = false")
    public List<UserWithdrawal> list(@Variable("beginIndex") int beginIndex, @Variable("maxResult") int maxResult);

}
